<header>
	<nav class="navbox">
		<span>
			<a href="/">myblog</a>
		</span>

		<span class="pull-right">
			<a href="/article/new">发表文章</a>
			{{if .user}}
				<a href="/user/{{.user.Id}}">我的主页</a>
				<a href="/setting">设置中心</a>
				<a href="/logout">退出</a>
			{{else}}
				<a href="/join">加入我们</a>
			{{end}}
		</span>
	</nav>
</header>